package com.engine4cloud.tdf.supervision.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.engine4cloud.tdf.common.data.web.response.PageInfo;
import com.engine4cloud.tdf.common.data.web.response.Params;
import com.engine4cloud.tdf.supervision.dto.create.SpReducePenaltyCreateDTO;
import com.engine4cloud.tdf.supervision.dto.query.SpReducePenaltyQueryDTO;
import com.engine4cloud.tdf.supervision.dto.result.SpReducePenaltyResultDTO;
import com.engine4cloud.tdf.supervision.dto.update.SpNormalPreActionUpdateDTO;
import com.engine4cloud.tdf.supervision.dto.update.SpReducePenaltyUpdateDTO;
import com.engine4cloud.tdf.supervision.entity.SpReducePenaltyEntity;

public interface SpReducePenaltyService extends IService<SpReducePenaltyEntity> {
    PageInfo<SpReducePenaltyResultDTO> getPageList(Params page, SpReducePenaltyQueryDTO dto);

    SpReducePenaltyResultDTO getById(Long id);

    /**
     * @param batch 流程编号
     * @return SpReducePenaltyResultDTO
     */
    SpReducePenaltyResultDTO getByBatch(String batch);

    Boolean create(SpReducePenaltyCreateDTO dto);

    Boolean update(SpReducePenaltyUpdateDTO dto);

    void changeAction(SpNormalPreActionUpdateDTO dto);

}